<script>
  import { testState } from "./../store/Test.svelte";
  let { user } = $props();
</script>

<div class="name">name:{user.name}</div>
<div class="age">age:{user.age}</div>
<input type="text" bind:value={user.name} />
<input type="text" bind:value={testState.name} />

<style lang="scss">
  .name {
    color: red;
  }
  .age {
    color: blue;
  }
</style>
